﻿using System;
using ProtoBuf;

namespace CSProtoData
{
    [ProtoContract]
    public class Head
    {
        [ProtoMember(1)]
        public Int32 DataType { get; set; }
        [ProtoMember(2)]
        public Int64 DataDate { get; set; }
        [ProtoMember(3)]
        public byte[] DataContent { get; set; }
    }

    [ProtoContract]
    public class Number
    {
        [ProtoMember(1)]
        public Int32 Index { get; set; }
        [ProtoMember(2)]
        public Int64 Value { get; set; }
    }

    public class Board
    {
        [ProtoMember(1)]
        public Int64 Rank { get; set; }
        [ProtoMember(2)]
        public string TargetName { get; set; }
        [ProtoMember(3)]
        public Int64 Number { get; set; }
    }

    public class Request
    {
        [ProtoMember(1)]
        public string DataType { get; set; }
        [ProtoMember(2)]
        public Int64 DataDate { get; set; }
        [ProtoMember(3)]
        public Int32 Start { get; set; }
        [ProtoMember(4)]
        public Int32 End { get; set; }
    }
}